function dec(name){
    return function(x){
        console.log(name + ':'+x)
    }
}

var fn = dec('longjq')
fn(10)